package com.hui10.mediaplayer.sigleton

/**
 * Author: Created by lucus on 2019/5/24.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 */
class DoubleCheckSingle private constructor() {

    companion object {
        val instance: DoubleCheckSingle by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            DoubleCheckSingle()
        }
    }

    fun printName(){
        println(javaClass.simpleName)
    }

}